import request from "@/utils/request";
/**
 * 获取直播商品
 * @param {*} params
 */
// 直播商品列表
export function liveProduct(params) {
  return request({
    url: "/admin/live/liveProduct",
    method: "post",
    params
  });
}
// 上架 下架
export function operationProduct(params) {
  return request({
    url: "/admin/live/changeStatus",
    method: "post",
    params
  });
}

// 添加直播间商品
export function saveLiveProduct(params) {
  return request({
    url: "/admin/live/saveLiveProduct",
    method: "post",
    params
  });
}

// 直播子账号列表
export function childrenLiveList(params) {
  return request({
    url: "/dinner/live/childrenLiveList",
    method: "post",
    params
  });
}

//app录播
export function LiveQueryList(params) {
  return request({
    url: '/admin/live/adminLuboList',
    method: 'get',
    params
  })
}
//删除录播
export function deletedLive(params) {
  return request({
    url: '/admin/live/deleteVideo',
    method: 'get',
    params
  })
}

//删除直播商品
export function deletedLiveProduct(params) {
  return request({
    url: '/admin/live/removeLiveProduct',
    method: 'post',
    params
  })
}

//获取直播token
export function getLiveToken(params) {
  return request({
    url: '/admin/live/getToken',
    method: 'get',
    params
  })
}

// 获取直播录播
export function getLiveRecordList(params) {
  return request({
    url: "/admin/live/luboList",
    method: "get",
    params
  });
}

// 获取直播信息
export function getLiveinfo(params) {
  return request({
    url: "/dinner/live/myLiveinfo",
    method: "post",
    params
  });
}
